from django.conf.urls.defaults import *

urlpatterns = patterns('postgetter.getpost.views',
    url(r'^$', 'index',name='index'),
    (r'^post/(?P<post_id>\d+)/?$','viewPost',{'page_from':1}),
    (r'^post/(?P<post_id>\d+)/page/?$','viewPost',{'page_from':1}),
    url(r'^post/(?P<post_id>\d+)/page/(?P<page_from>\d+)/?$','viewPost',name='post-url'),
    url(r'^posts/?','viewPostList',name='postlist'),
    url(r'^pic/(?P<url>.*?)/?$', 'dispic',name='img-url'),
##    (r'^(?P<video_id>\d+)/$', 'detail'),
##    # (r'^(?P<video_id>\d+)/ss/$', 'screenshot'),
##    #(r'^(?P<video_id>\d+)/ss/(?P<screenshot_id>\d+)$', 'showss'),
##    (r'^ss/(?P<screenshot_id>\d+)$', 'showss'),
##    (r'^pic/(?P<screenshot_id>\d+)$', 'dispic',{'file_path':''}),
##    (r'^pic/(?P<file_path>[a-z,A-Z,0-9,_,-]*[=]{0,})$', 'dispic',{'screenshot_id':''}),
##    (r'^vpath/(?P<video_id>\d+)$', 'vpath'),
##    (r'^addpicinfolder/$', 'addPicInFolder'),
##    (r'^testauto/$', 'testauto'),
##    (r'^pythonchallenge/$', 'pythonchallengetest'),

    # Example:
    # (r'^btCollection/', include('btCollection.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
